<?php

namespace app\wechat\controllers;

use app\wechat\core\BaseController;
use app\wechat\interfaces\InspectorInterface;
use app\wechat\models\InspectorModel;
use cm;

class InspectorController extends BaseController implements InspectorInterface
{
    /*
    * 登陆
    */
    function actionLogin()
    {
        return (new InspectorModel())->actionLogin();
    }

    /*
    *是否登录
    */
    function actionIslogin()
    {
    	return (new InspectorModel())->actionIslogin();	
    }

    /*
	*检票列表
    */
    function actionList()
    {
    	return (new InspectorModel())->actionList();		
    }

    /*
    *订单详情
    */
    function actionInfo()
    {
    	return (new InspectorModel())->actionInfo();		
    }

    /*
    *检票
    */
    function actionChecking()
    {
    	return (new InspectorModel())->actionChecking();		
    }

    /*
    *检票端
    */
    function actionIndex()
    {
        $this->layout = false;
        return Cm::$res->render($this, "index", [], '首页');
    }
}